// Java Class Methods
public class Sample24 {
  // Create a fullThrottle() method
  public void fullThrottle() {
    System.out.println("The car is going as fast as it can!");
  }

  // Create a speed() method and add a parameter
  public void speed(int maxSpeed) {
    System.out.println("Max speed is: " + maxSpeed);
  }

  // Static method
  static void myStaticMethod() {
    System.out.println("Static methods can be called without creating objects");
  }

  // Inside main, call the methods on the myCar object
  public static void main(String[] args) {
    myStaticMethod(); // Call the static method

    Sample24 myCar = new Sample24(); // Create a myCar object
    myCar.fullThrottle(); // Call the fullThrottle() method
    myCar.speed(200); // Call the speed() method
  }
}